/**
 * Created by zby on 2018/4/1.
 */

import java.io.*;

public class Example10_3 {
    public static void main(String[] args) {
        try {
            Runtime ce = Runtime.getRuntime();
            File file = new File("C:/Windows", "Notepad.exe");
            ce.exec(file.getAbsolutePath());
            file = new File("C:\\Program Files\\Internet Explorer", "IEXPLORE" +
                    "www.sohu.com");
            ce.exec(file.getAbsolutePath());
        } catch (Exception e) {
            System.out.println("e");
        }
    }
}
